package com.rrjjg.app.admin.data.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rrjjg.app.admin.data.service.IProjectService;
import com.rrjjg.app.admin.data.storage.entity.Project;
import com.rrjjg.app.admin.data.storage.mapper.ProjectMapper;
import com.rrjjg.app.mybatis.util.PageUtil;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 平台 服务实现类
 * </p>
 *
 * @author vayne
 * @since 2023-04-06
 */
@Service
public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> implements IProjectService {


    @Override
    public Page<Project> queryPage(Project project, int page, int size) {
        return page(new Page<>(page,size), PageUtil.queryWrapper(project, Project.class));
    }
}
